<?php

namespace IDock\Insurance\JDAL\Request;

use IDock\Insurance\JDAL\Response\PolicyPaymentResponse;
use IDock\Visitor\PolicyPaymentVisitor;
use IDock\Visitor\VehicleModelVisitor;

class PolicyPaymentRequest extends AllJDALRequest
{
    public $route = 'preIssuePolicy/applicationConfirm';

    public $requestCode = 'confirmPaymentRequest';

    protected $response = PolicyPaymentResponse::class;

    protected $urlTip = '支付接口';

    /*** @var  PolicyPaymentVisitor $visitor */
    protected $visitor;

    public function generate(): array
    {
        $this->partnerRef = $this->visitor->argc['channelCode'] ?? '';

        return [
            'quoteNo' => $this->visitor->argc['quoteNo'] ?? '',
            'notifyUrl' => $this->callBackUrl,
            'returnUrl' => '',
            'sysSource' => '', // 在builder中生成
        ];

    }
}
